<template>
    <view class="Wrapper">
        <titleBox title="服务卡信息"></titleBox>
        <view class="Info">
            <image :src="headImg" mode="aspectFill" class="CradLogo"></image>
            <view class="Info-box">
                <text class="ellipsis title">卡片名称卡片名卡片名称卡片名卡片名称卡片名卡片名称卡片名</text>
                <view class="boxState">
                    <view class="boxState_info">
                        <text class="ellipsis color_99 size26">这儿是卡片的摘要说</text>
                        <text class="color_cc h6 m-top10">2025年9月15日到期</text>
                    </view>
                    <view class="NumBox">
                        <view class="NumSlide">
                            <u-line-progress
                                :percentage="50"
                                :showText="false"
                                :height="5"
                                activeColor="#ff0000"></u-line-progress>
                        </view>
                        <text class="color_99 h6 m-top10">剩余 6 次</text>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
    import titleBox from '@/components/subCard/titleBox.vue'
    export default {
        components: { titleBox },
        data() {
            return {
                headImg: 'https://msraimgcdn.mogoie.com/6099/1709797684310.JPG',
            }
        },
        methods: {},
    }
</script>

<style lang="scss" scoped>
    .Wrapper {
        width: 690rpx;
        margin: 24rpx auto 0;
        background-color: #ffffff;
        border-radius: 10rpx;
        padding: 20rpx 30rpx 20rpx 20rpx;
        .Info {
            width: 100%;
            display: flex;
            align-items: center;
            .CradLogo {
                width: 110rpx;
                height: 110rpx;
                border-radius: 50%;
                margin-right: 24rpx;
            }
            .Info-box {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                margin-top: 20rpx;
                overflow: hidden;
                .title {
                    width: 100%;
                    color: #000;
                    font-size: 32rpx;
                    font-weight: bold;
                }
                .boxState {
                    width: 100%;
                    display: flex;
                    align-items: center;
                    .boxState_info {
                        flex: 1;
                        display: flex;
                        flex-direction: column;
                        margin-top: 14rpx;
                    }
                    .NumBox {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        margin-top: 10rpx;
                        .NumSlide {
                            width: 150rpx;
                        }
                    }
                }
            }
        }
    }
</style>
